<?php
class Hello extends CI_Model{
  
    private $table = 'user';
    
    public function insert(){
      
        $arrayInsert = array( 'id'=>4, 'name'=>'hello', 'pwd'=>'123');
//        $this->db->insert( $this->table, $arrayInsert );
    }
    
    public function show(){
      $sql = "select * from $this->table ";
      $query = $this->db->query( $sql );
      return $query->result();
    }
}
